import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
    routes: [
        {
            path: '/',
            redirect: '/login'
        },
        {
            path: '/',
            component: () => import(/* webpackChunkName: "home" */ '../components/common/Home.vue'),
            meta: { title: '自述文件' },
            children: [
                {
                    path: '/dashboard',
                    component: () => import(/* webpackChunkName: "dashboard" */ '../components/page/index/Dashboard.vue'),
                    meta: { title: '系统首页' }
                },
                {
                    path: '/user',
                    component: () => import(/* webpackChunkName: "patient" */ '../components/page/system/user/User.vue'),
                    meta: { title: '用户管理' }
                },
                {
                    path: '/role',
                    component: () => import(/* webpackChunkName: "patient" */ '../components/page/system/role/Role.vue'),
                    meta: { title: '角色管理' }
                },
                {
                    path: '/menus',
                    component: () => import(/* webpackChunkName: "patient" */ '../components/page/system/menu/Menu.vue'),
                    meta: { title: '菜单管理' }
                },
                {
                    path: '/organ',
                    component: () => import(/* webpackChunkName: "patient" */ '../components/page/system/organ/Organ.vue'),
                    meta: { title: '医院管理' }
                },
                {
                    path: '/parameters',
                    component: () => import(/* webpackChunkName: "patient" */ '../components/page/system/parameters/Parameters.vue'),
                    meta: { title: '配置管理' }
                },
                {
                    path: '/eurekaInfo',
                    component: () => import(/* webpackChunkName: "patient" */ '../components/page/system/eureka/EurekaInfo.vue'),
                    meta: { title: '服务管理' }
                },
                {
                    path: '/monitors',
                    component: () => import(/* webpackChunkName: "patient" */ '../components/page/monitor/Monitor.vue'),
                    meta: { title: '系统监控' }
                },
                {
                    path: '/baidu',
                    component: () => import(/* webpackChunkName: "patient" */ '../components/page/map/Baidu.vue'),
                    meta: { title: '百度地图' }
                },
                {
                    path: '/standPatient',
                    component: () => import(/* webpackChunkName: "patient" */ '../components/page/stand/patient/Patient.vue'),
                    meta: { title: '患者信息' }
                },
                {
                    path: '/comManage',
                    component: () => import(/* webpackChunkName: "patient" */ '../components/page/stand/comManage/ComManage.vue'),
                    meta: { title: '设备管理' }
                },
                {
                    path: '/appoint',
                    component: () => import(/* webpackChunkName: "appoint" */ '../components/page/stand/appoint/Appoint.vue'),
                    meta: { title: '康复预约' }
                },
                {
                    path: '/prescription',
                    component: () => import(/* webpackChunkName: "appoint" */ '../components/page/stand/prescription/Prescription.vue'),
                    meta: { title: '康复处方' }
                },
                {
                    path: '/assess',
                    component: () => import(/* webpackChunkName: "appoint" */ '../components/page/stand/assess/Assess.vue'),
                    meta: { title: '康复评估' }
                },
                {
                    path: '/train',
                    component: () => import(/* webpackChunkName: "appoint" */ '../components/page/stand/train/presTrain.vue'),
                    meta: { title: '康复训练' }
                },
                {
                    path: '/jlcPatientInfo',
                    component: () => import(/* webpackChunkName: "appoint" */ '../components/page/jlc/JlcPatientInfo.vue'),
                    meta: { title: '患者信息' }
                },
                {
                    path: '/jlcTreatrecord',
                    component: () => import(/* webpackChunkName: "appoint" */ '../components/page/jlc/JlcTreaTrecord.vue'),
                    meta: { title: '治疗记录' }
                },
                {
                    path: '/upperlimbAppointment',
                    component: () => import(/* webpackChunkName: "appoint" */ '../components/page/sfrobot/upperlimb/SfrobotAppointment.vue'),
                    meta: { title: '康复预约' }
                },
                {
                    path: '/upperlimbAssessRecord',
                    component: () => import(/* webpackChunkName: "appoint" */ '../components/page/sfrobot/upperlimb/SfrobotAssessRecord.vue'),
                    meta: { title: '康复评估' }
                },
                {
                    path: '/upperlimbGameRecord',
                    component: () => import(/* webpackChunkName: "appoint" */ '../components/page/sfrobot/upperlimb/SfrobotGameRecord.vue'),
                    meta: { title: '游戏记录' }
                },
                {
                    path: '/upperlimbPatient',
                    component: () => import(/* webpackChunkName: "appoint" */ '../components/page/sfrobot/upperlimb/SfrobotPatient.vue'),
                    meta: { title: '患者信息' }
                },
                {
                    path: '/upperlimbRobotDevice',
                    component: () => import(/* webpackChunkName: "appoint" */ '../components/page/sfrobot/upperlimb/SfrobotRobotDevice.vue'),
                    meta: { title: '机器信息' }
                },
                {
                    path: '/upperlimbRobotError',
                    component: () => import(/* webpackChunkName: "appoint" */ '../components/page/sfrobot/upperlimb/SfrobotRobotError.vue'),
                    meta: { title: '错误信息' }
                },
                {
                    path: '/upperlimbTrainingRecord',
                    component: () => import(/* webpackChunkName: "appoint" */ '../components/page/sfrobot/upperlimb/SfrobotTrainingRecord.vue'),
                    meta: { title: '训练信息' }
                },
                {
                    path: '/upperlimbRobotStatus',
                    component: () => import(/* webpackChunkName: "appoint" */ '../components/page/sfrobot/upperlimb/SfrobotRobotStatus.vue'),
                    meta: { title: '机器状态' }
                },
                {
                    path: '/lowerlimbAppointment',
                    component: () => import(/* webpackChunkName: "appoint" */ '../components/page/sfrobot/lowerlimb/SfrobotAppointment.vue'),
                    meta: { title: '康复预约' }
                },
                {
                    path: '/lowerlimbAssessRecord',
                    component: () => import(/* webpackChunkName: "appoint" */ '../components/page/sfrobot/lowerlimb/SfrobotAssessRecord.vue'),
                    meta: { title: '康复评估' }
                },
                {
                    path: '/lowerlimbGameRecord',
                    component: () => import(/* webpackChunkName: "appoint" */ '../components/page/sfrobot/lowerlimb/SfrobotGameRecord.vue'),
                    meta: { title: '游戏记录' }
                },
                {
                    path: '/lowerlimbPatient',
                    component: () => import(/* webpackChunkName: "appoint" */ '../components/page/sfrobot/lowerlimb/SfrobotPatient.vue'),
                    meta: { title: '患者信息' }
                },
                {
                    path: '/lowerlimbRobotDevice',
                    component: () => import(/* webpackChunkName: "appoint" */ '../components/page/sfrobot/lowerlimb/SfrobotRobotDevice.vue'),
                    meta: { title: '机器信息' }
                },
                {
                    path: '/lowerlimbRobotError',
                    component: () => import(/* webpackChunkName: "appoint" */ '../components/page/sfrobot/lowerlimb/SfrobotRobotError.vue'),
                    meta: { title: '错误信息' }
                },
                {
                    path: '/lowerlimbTrainingRecord',
                    component: () => import(/* webpackChunkName: "appoint" */ '../components/page/sfrobot/lowerlimb/SfrobotTrainingRecord.vue'),
                    meta: { title: '训练信息' }
                },
                {
                    path: '/lowerlimbRobotStatus',
                    component: () => import(/* webpackChunkName: "appoint" */ '../components/page/sfrobot/lowerlimb/SfrobotRobotStatus.vue'),
                    meta: { title: '机器状态' }
                },
                /*磨砂桌*/
                {
                    path: '/mattingPatient',
                    component: () => import(/* webpackChunkName: "patient"*/ '../components/page/matting/Patient.vue'),
                    meta: { title: '患者信息' }
                },
                {
                    path: '/mattingGameRecord',
                    component: () => import(/* webpackChunkName: "appoint"*/ '../components/page/matting/GameRecord.vue'),
                    meta: { title: '游戏记录' }
                },
                {
                    path: '/mattingTrainRecord',
                    component: () => import(/* webpackChunkName: "appoint"*/ '../components/page/matting/TrainRecord.vue'),
                    meta: { title: '训练记录' }
                },
                /*床旁上下肢*/
                {
                    path: '/cpPatient',
                    component: () => import(/* webpackChunkName: "patient"*/ '../components/page/cp/PatientList.vue'),
                    meta: { title: '患者信息' }
                },
                {
                    path: '/cpTrainRecord',
                    component: () => import(/* webpackChunkName: "appoint"*/ '../components/page/cp/TrainRecord.vue'),
                    meta: { title: '训练记录' }
                },
                /*踝关节*/
                {
                    path: '/qgnhPatient',
                    component: () => import(/* webpackChunkName: "patient"*/ '../components/page/qgnh/Patient.vue'),
                    meta: { title: '患者信息' }
                },
                /*等速*/
                {
                    path: '/dsPatient',
                    component: () => import(/* webpackChunkName: "patient"*/ '../components/page/ds/Patient.vue'),
                    meta: { title: '患者信息' }
                },
                {
                    path: '/dsTrainRecord',
                    component: () => import(/* webpackChunkName: "patient"*/ '../components/page/ds/TrainRecord.vue'),
                    meta: { title: '训练信息' }
                },
                {
                    path: '/404',
                    component: () => import(/* webpackChunkName: "404" */ '../components/page/404.vue'),
                    meta: { title: '404' }
                },
                {
                    path: '/403',
                    component: () => import(/* webpackChunkName: "403" */ '../components/page/403.vue'),
                    meta: { title: '403' }
                }
            ]
        },
        {
            path: '/login',
            component: () => import(/* webpackChunkName: "login" */ '../components/page/login/Login.vue'),
            meta: { title: '登录' }
        },
        {
            path: '*',
            redirect: '/404'
        }
    ]
});
